package dvonn.game;

public enum Token {
	DVONN, WHITE, BLACK, EMPTY, RESERVED;
	
	@Override
	public String toString() {
		switch (this) {
		case DVONN : return "D";
		case WHITE : return "W";
		case BLACK : return "B";
		case EMPTY : return "E";
		case RESERVED : return "R";
		}
		return "_";
	}
	
	public boolean isPlayerToken() {
		if (this==DVONN||this==EMPTY||this==RESERVED) return false;
		return true;
	}
	
	public Token[] playerTokens() {
		return new Token[] {WHITE,BLACK};
	}
	
	public Token nextPlayer() {
		if (this==Token.WHITE) return Token.BLACK;
		return Token.WHITE;
	}
	
}